<head th:fragment="header" xmlns:th="http://www.w3.org/1999/xhtml">
    <!-- 必要的标签 -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- Bootstrap CSS -->
    <link crossorigin="anonymous" integrity="sha512-6KY5s6UI5J7SVYuZB4S/CZMyPylqyyNZco376NM2Z8Sb8OxEdp02e1jkKk/wZxIEmjQ6DRCEBhni+gpr9c4tvA==" href="https://lib.baomitu.com/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" th:href="@{/css/style.css}">

</head>

<nav th:fragment="navbar" class="navbar navbar-expand-lg navbar-white bg-light" xmlns:th="">
    <div th:class="container">
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo03" aria-controls="navbarTogglerDemo03" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <a class="navbar-brand" href="#">Books</a>

        <div class="collapse navbar-collapse" id="navbarTogglerDemo03">
            <ul id="myTab" class="nav nav-tabs">

                <li class="nav-item">
                    <a class="nav-link" th:href="@{/}">全部图书</a>
                </li>

                <li class="nav-item">
                    <a class="nav-link" th:href="@{/borrows}">书架</a>
                </li>

                <li class="nav-item">
                    <a class="nav-link" th:href="@{/userOnes}">借阅图书</a>
                </li>

                <li class="nav-item">
                    <a class="nav-link" th:href="@{/userAccounts}">管理员信息</a>
                </li>

                <li class="nav-item">
                    <a class="nav-link" th:href="@{/newBooks}">新增图书</a>
                </li>

                <li class="nav-item">
                    <a class="nav-link" th:href="@{/overTimes}">违约情况</a>
                </li>

            </ul>

        </div>
    </div>
</nav>